<template>
 <div class="container">
    <h2 v-text="vtext"></h2>
    <h2 v-html="vhtml"></h2>
 </div>
</template>

<script setup>
    const vtext  = '<span>hello,world</span>'//内容
    const vhtml = '<span>hello,world</span>'
</script>
<style>
</style>
